package com.ghh.provider.dao;

import com.ghh.provider.domain.Goods;
import org.springframework.stereotype.Repository;

@Repository
public class GoodsDao {
    public Goods findOne(int id){
        if (id%2==0) {
            return new Goods(1, "华为手机", 6666, 10001);
        }else {
            return new Goods(2, "苹果手机", 8888, 10000);
        }
    }
}
